/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.Random;

/**
 *
 * @author Dennis
 */
public class MovieInfo {
    
    private String name;
    private String year;
    private String length;
    
    public MovieInfo(String name) {
        Random generator = new Random();
        this.name = name;
        this.year = "" + generator.nextInt(2000);
        this.length = "" + generator.nextInt(200);
    }
    
    public String getYear() {
        return this.year;
    }
    
    public String getLength() {
        return this.length;
    }
    
    @Override
    public String toString() {
        return name;
    }
}
